package com.quan.api.ums;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.quan.commons.core.bean.R;
import com.quan.commons.core.biz.support.MyBaseController;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.log.annotation.SysLog;
import com.quan.mall.commons.vo.UmsMemberLevelVo;
import com.quan.mall.entity.UmsMemberLevel;
import com.quan.mall.service.UmsMemberLevelService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.Arrays;
import java.util.List;


/**
 * 会员等级
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-08 21:41:30
 */
@Slf4j
@Api(tags = "会员等级")
@RestController
@RequestMapping("/api/mall/umsmemberlevel")
public class ApiUmsMemberLevelController extends MyBaseController {

    @Autowired
    private UmsMemberLevelService service;


    /**
     * 列表查询
     * @param vo
     * @return
     */
    @GetMapping(value = "list")
    public Object list(UmsMemberLevelVo vo) {
        List<UmsMemberLevelVo> list = this.service.queryList(new PageUtils(request), vo);
        return R.ok().put("data", list);
    }


}
